<html>

<head>
    <meta charset="utf-8" />
    <script type="text/javascript" src="dependencies/jquery.js"></script>
    <script>
        var param = document.URL.slice(document.URL.search('\\?'));
        var studentID = param.slice(9, 22);
    </script>

</head>

<body>
    <div style="padding-bottom: 1em;">
        <h1 style="display: inline;">学生端</h1>
        <a href="index.html"><button type='button'>退出登录</button></a>
        <p style="margin-bottom: 0;"></p>
        <script>
            $("p").html("欢迎你, " + studentID + ".");
        </script>
    </div>
    <br>
    <button id='b1' type='button'>课程表</button>
    <button id='b2' type='button'>开课信息查询</button>
    <button id='b3' type='button'>笔记查询</button>
    <br><br>
    <button id='b4' type='button'>作息时间表</button>
    <button id='b5' type='button'>校车时间表</button>
    <button id='b6' type='button'>本学期校历</button>

    <script>
        $("#b1").click(function () {
            window.location.href = "curriculum.html" + param;
        });
        $("#b2").click(function () {
            window.location.href = "query_course.html" + param;
        });
        $("#b3").click(function () {
            window.location.href = "notes.html" + param;
        });
        $("#b4").click(function () {
            window.location.href = "time_table.html" + param;
        });
        $("#b5").click(function () {
            window.location.href = "bus_table.html" + param;
        });
        $("#b6").click(function () {
            window.location.href = "canlendar.html" + param;
        });
    </script>

</body>

</html>